Google Map Marker

dear SC user,

do you have any idea how to show a map using google map field with beautiful marker map?
i can only show a location on map, based on my latitude and longitude database, and then choose a field as a marker map.

here is i attach 2 image files: google image map 1.jpg and google image map 2.jpg.

google image map 2 is the result using google map field in scriptcase. google image map 1 is the expected result, which i don’t have any idea how to make this happened.

pleas kindly help where i can get this knowledge based for using google map field in scriptcase. any help would be appreciated.
thank you

regards,
-Iwan P-

Google Map Image 2 by scriptcase grid application.jpg

Google Map Image 1.jpg

The possibilties in SC regarding Google Maps is pretty limited. That’s why I use the GM api (v3) directly. It’s well documented and it might cost you some time, but it’s not very complicated and gives you all the power. There are loads of working samples out there to get started and you have a pretty good change to find an app which only needs to be modified a little to get it running to your needs. You can - of course - implement this code in your SC application.

many thanks for this great idea, albert.
should i use blank application for showing map with sample codes from GM api?

-Iwan P-

Yes you can use a blank application, but also other applications. The trick is that you need to apply javascript and there are several ways of putting that in your SC code. I generate javascript in my php application to allow the end-user to connect to GM and select the coordinates etc. This way you avoid the max. amount of request you are allowed on the API. You need to be able to apply a <div> with a name which is used by GM to fill in the map. Look to the samples first before you decide, the power of GM is also it’s bottle neck… thousands of ways of doing things.

thanks alot, albert :slight_smile:
you’ve just given me the correct direction. i’ll go with blank application and show it as modal as simple map with cool infowindow.

thanks :slight_smile:

-Iwan P-