03-02-2013 06:12 AM
I'm using Google Maps in a webview to get my users to select a point on the map so I can save its coordinates. (I can't use BlackBerry Maps because well there aren't any for my country - Lebanon - so it doesn't make sense to develop something I can't use)
Anyways, it works ok except for putting a marker on the map. I used a basic code to put a marker on mouse click on the map. The marker bllinks for 1 seconds or less and then disappears. Any idea why that is?
Solved! Go to Solution.
03-03-2013 06:05 AM
03-15-2013 08:59 AM - edited 03-15-2013 09:01 AM
Did you get it fixed?
I tried, everything that lewellyn recommended, but I didn't know what exactly happens on markers.
Everytime that any marker shows (when it shows), its a big image in wrong place (normally under to the right the point that I want to show).
I'll try find another way to fix it. but I can't see another way . . . .
It might be a problem inside the js, that do not fix the resizing of marker layer ... if you set the marker with draggable : true, it shows the Pin correctly ...
06-20-2013 02:48 AM
Fixing the viewport helped in my case.
Add this script in your index.html if you're using BBUI:
<script> var meta = document.createElement("meta"); meta.setAttribute('name','viewport'); meta.setAttribute('content','initial-scale='+ (1/window.devicePixelRatio) + ',user-scalable=no'); document.getElementsByTagName('head').appendChi