Select to view content in your preferred language

Navigation toolbar for AGS + GoogleMaps API?

913
3
05-15-2010 06:52 AM
JensOldeland
Emerging Contributor
hi,

I was able to embed my navigation-toolbar icons but the connection to the map does not work:
http://biota.botanik.uni-hamburg.de:8399/web/TEST-Navbar/Observatory_WebGIS.html

is the navigation toolbar not (yet) supported in AGS-JS for GoogleMaps ?

could anyone have a look?
thank you!
0 Kudos
3 Replies
AlessioDi_Lorenzo
Emerging Contributor
Hi oldeland77,

If I run your application with firebug turned on, it returns the error "navToolbar is not defined" (You MUST use Firebug during the development).
Taking a look to the Google Maps extension API reference, I see nothing concerning toolbars, so I believe it works only with the "main" Javascript APIs that includes Dojo (navToolbar is a dijit by esri).

In my opinion you have these possibilities:

If you don't need Google Maps and its high spatial resolution you can turn on Javascript APIs, using base map from ESRI

If you need high spatial resolution base maps you may consider to use Bing inside the Javascript APIs (not extensions for Bing)

or...

You can create a toolbar by yourself using Google Maps APIs and some extensions as dragzoombox.
For example, in this days I'm developing a webmap template based on Google Maps and jQuery, I created a toolbar with:
full extent, dragzoom, dragbox (for selection and query), draw polygon (for selection and query), measurement tools. At the moment it does not include navigation history, but it is planned.
0 Kudos
JensOldeland
Emerging Contributor
Hi digy79,

If I run your application with firebug turned on, it returns the error "navToolbar is not defined" (You MUST use Firebug during the development).

Yes, I know that Firebug should be a must, but I did not figure out how to use it correctly 😞 Sounds stupid, I know. I will try to find the message you found.

Taking a look to the Google Maps extension API reference, I see nothing concerning toolbars, so I believe it works only with the "main" Javascript APIs that includes Dojo (navToolbar is a dijit by esri).

Thats what I feared...

Regarding the possibilities you mentioned: I need the high resolution because the objects I have to display (those little red grids at the bottom of each marker) are what it´s all about. I had a look at Bing as well, but it totally sucks over whole Africa (okay, at least at the spots I need it most). So I guess I will try to stick these toolbars together by hand.

I found a lot of nice examples right here (of course after my thread):
http://code.google.com/p/gmaps-utility-library-dev/


For example, in this days I'm developing a webmap template based on Google Maps and jQuery, I created a toolbar with:
full extent, dragzoom, dragbox (for selection and query), draw polygon (for selection and query), measurement tools. At the moment it does not include navigation history, but it is planned.

Wow that sounds great!  I will post my toolbar here again when I´m ready (Monday 😄 )

thanks again for answering!
0 Kudos
AlessioDi_Lorenzo
Emerging Contributor
Hi digy79,


Yes, I know that Firebug should be a must, but I did not figure out how to use it correctly 😞 Sounds stupid, I know. I will try to find the message you found.


Jens, there are a lot of firebug tutorial out there 🙂
Use google and type "firebug tutorial" in the search field, then take a little time to study...
firebug (or something else for debugging javascript, like the Aptana IDE's debugger) is essential.


I found a lot of nice examples right here (of course after my thread):
http://code.google.com/p/gmaps-utility-library-dev/


Google Maps gallery is a great resource: dragzoom or markers clustering are good examples of useful feature even for gis application development.
However Google Maps is not "GIS", so you will probably have to build by yourself some typical GIS tools.



I will post my toolbar here again when I´m ready (Monday 😄 )


Great! 😄
0 Kudos