Polygon in OSM layer

609
2
11-09-2010 04:13 AM
Hans-JürgenWeber
New Contributor
Hello,

creating a graphics layer with a polygon works with esri streetmap layer (see attached example TestPolygonEsriStreetMap.html.txt), but it doesn't work with openstreetmap layer (see attached example TestPolygonOpenStreetMap.html.txt).
Any ideas what went wrong?
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
It looks like the map's onLoad event wasn't firing. I moved the code that hooks up the onload event above the lines that add the openstreetmap layer and the polygon displays (see attached).
0 Kudos
by Anonymous User
Not applicable
Original User: HJWeber

Thank you, that worked!
0 Kudos