Xlinesoft.com >> Marketplace >>
GoogleMap
$10.00
GoogleMap plugin is an extended version of 'View as' Map. It allows to display multiple markers on the same map. This plugin offers two different display options (you can use custom markers in both cases).

Google Maps API key needs to be inserted under Misc --> Map settings in the software.

1. Two markers mode. Easier to setup. Markers info is stored in the same table.

Sample initialization script (PHP):

$this->settings["width"] = 300; // map width
$this->settings["height"] = 250; // map height

// marker 1
$this->settings["addressField1"] = "address1"; // address of marker #1
$this->settings["latField1"] = "lat1"; // latitude of marker #1
$this->settings["lngField1"] = "lon1"; // longitude of marker #1
$this->settings["descField1"] = "desc1"; // description of marker #1
$this->settings["markerIcon1"] = "images/home.png";

// marker 2
$this->settings["addressField2"] = "address2"; // address of marker #2
$this->settings["latField2"] = "lat2"; // latitude of marker #2
$this->settings["lngField2"] = "lon2"; // longitude of marker #2
$this->settings["descField2"] = "desc2"; // description of marker #2
$this->settings["markerIcon2"] = "images/car.png";

2. Multiple markers mode. Markers are stored in a separate table that allows displaying as many markers as you need. Here is the sample code that we use in live demo in business2 table.

$this->settings["width"] = 500; // map width
$this->settings["height"] = 350; // map height


$this->settings["markerTableField"] = "id"; // link field in the master markers table
$this->settings["markerTableName"] = "locations"; //name of details markers table
$this->settings["markerDetailField"] = "businessid"; //link field in details table of markers
$this->settings["markerLat"] = "lat"; // latitude of details markers table
$this->settings["markerLng"] = "lon"; // longitude of details markers table
$this->settings["markerAddr"] = "address"; // address of details markers table
$this->settings["markerDesc"] = "desc"; // description of details markers table

// Or specify a field from your SQL query that contains marker name:
$this->settings["markerIconField"] = "icon";




Reviews

Login or Register to rate
12345
eduardo mendoza
2017-Apr-24
In mozilla works fine but there is a bug in chorme .. does not show the map ... here the bug in the console ... Uncaught ReferenceError: Google is not defined      At new constructor (include / gmap.js: 2)      At buildtor.getMapProvider (include / runnerJS / MapManager.js: 3)      At new constructor (include / runnerJS / MapManager.js: 3)      At HTMLDivElement. (ViewGoogleMap.js: 2)      At Function.each (loadfirst.js: 1)      At n.fn.init.each (loadfirst.js: 1)      At constructor.init (ViewGoogleMap.js: 2)      At constructor.initViewControls (RunnerAll.js: 1356)      At constructor.initForTabs (RunnerAll.js: 1615)      At buildtor.init (RunnerAll.js: 1306) Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required Saludos!
12345
xlinesoft
2017-Apr-17
Rating only
Add to cart
12345
Ratings: 2
View plugin
Xlinesoft
6/5/2023
1.0
ASPRunnerPro,PHPRunner,ASPRunner.NET