I get this error when I call AddPopup():
The same error occurs in both Chrome and IE. The map works fine when I comment out that line, and the markers work fine as well. Later, icon0 and lonLat0 will be several items in a loop, but I'll handle that. The end result should be a text box of some kind that would display on the marker. The marker at lonLat0 displays, so it doesn't seem like a problem with the lonLat object. Yes, I will end up displaying many markers with text on them all at once. I know, it seems silly, but that's the requirement. Why does addPopup give me this error?
asked 02 Mar '12, 19:23 tsilb |
I had a play around in firefox with your code. For me it gives an error ' ...which is easily fixed by swapping the last two lines around i.e. do For me then it works apart from the size of the bubble popup is wrong and the close button doesn't work, so this would need more work. You might find my little popups example here useful, except it's defining markers as vector features so it's a bit different. answered 04 Mar '12, 21:44 Harry Wood That did it. Do you know of a way to make the popups smaller? My requirement is to have many of them with a small text blurb, visible all the time. Thanks.
(05 Mar '12, 17:45)
tsilb
|